package com.jinmdz.app.api.api.model.common;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 编码code对应名称对象
 *
 * @author GaoXiangLiang
 * @date 2020-05-14 15:46
 */
@ApiModel(value = "编码code对应名称对象", description = "编码code对应名称对象")
public class CodeTextData extends BaseBean {
    /**
     * 主键
     */
    @AnValidate(name = "主键")
    @ApiModelProperty(value = "主键", name = "id", position = 1)
    private Integer code;

    /**
     * 名称
     */
    @AnValidate(name = "名称")
    @ApiModelProperty(value = "名称", name = "text", position = 2)
    private String text;

    public CodeTextData() {

    }

    public CodeTextData(Integer code, String text) {
        this.code = code;
        this.text = text;
    }

    public Integer getCode() {
        return code;
    }

    public CodeTextData setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getText() {
        return text;
    }

    public CodeTextData setText(String text) {
        this.text = text;
        return this;
    }
}
